package com.rags.chess.pieces;

import com.rags.chess.base.Color;
import com.rags.chess.base.Coordinate;
import com.rags.chess.base.Piece;
import com.rags.chess.game.Game;

public class King extends Piece {
	private boolean moved = false;

	public King(Color color, Coordinate position) {
		super(color, position, 0, "K");
	}

	@Override
	public boolean isValidMove(Game game, Coordinate destination) {
		return ValidMoveHelper.isValidMoveKing(game, getPosition(), destination);
	}

	public void setMoved(boolean moved) {
		this.moved = moved;
	}

	public boolean isMoved() {
		return moved;
	}
}
